<link rel="stylesheet" type="text/css" href="<?=gurl('css');?>/index.css" />
<link rel="stylesheet" type="text/css" href="<?=gurl('css');?>/recommend.css" />
<script language="javascript" src="<?=gurl('js');?>/user.js"></script>
<!-- 主容器 -->
<div class="login">
<? if($account):?>
<a href="/home/profile/<?=$account["account_id"];?>"><?=$account["account_username"];?></a><a href="<?=gurl('accounts/logout');?>">退出</a><a href="<?=gurl('about/contact');?>">建议</a>
<? else:?>
<a href="<?=gurl('accounts/');?>">登录</a><a href="<?=gurl('accounts/');?>">注册</a><a href="<?=gurl('about/contact');?>">建议</a>
<? endif;?>
</div>
<div class="w940">
	<div class="webShow">
		<span class="tl"></span><span class="tr"></span>
		<div class="cc" id="indexbanner">
		</div>
		<span class="bl"></span><span class="br"></span>
	</div>
	<div class="loginBox">
		<span class="tl"></span><span class="tr"></span>
		<div class="cc">
		<? if($account):?>
			<dl>
				<dt>
					<span class="logLeft"><img class="blank" src="images/tran.gif" /><a href="/home/profile/<?=$account["account_id"];?>" ><img src="<?=gurl('data');?>/upload_pic/<?=$account['photo'];?>" onerror="this.src='<?=gurl('images');?>/userlogo.gif';" width="40" height="40" /></a></span>
					<span class="logRight">
						<a class="tit" href="/home/profile/<?=$account["account_id"];?>"><?=$account["account_username"];?></a>
					</span>
				</dt>
				
				<dt>
				<? if($usersite):?>
					<span class="logLeft"><img class="blank" src="images/tran.gif" /><a href="<?=c('site_url');?><?=$usersite['domain'];?>"><img src="<?=gurl('data');?>/upload_pic/<?=$usersite['info']['logo'];?>" onerror="this.src='<?=gurl('images');?>/hotweblog.gif';" width="40" height="40" /></a></span>
					<span class="logRight">
						<a class="tit" href="<?=c('site_url');?><?=$usersite['domain'];?>"><?=$usersite["name"];?></a>
						<em><a href="<?=c('site_url');?><?=$usersite['domain'];?>"><script language="javascript" src="<?=gurl('site_statis/funs/'.$usersite["id"]);?>"></script></a>人关注</em>
					</span>
				<? endif;?>
				</dt>
				
				<dd><? if($myfuns>0):?>关注<a href="/home/site/<?=$account["account_id"];?>"><?=$myfuns;?></a>个轻站<? endif;?></dd>
				<dd><? if($mymessages>0):?><a style="color:#bd202e;" href="/home/inbox/<?=$account["account_id"];?>">新邮件</a> <? endif;?><? if($newcomment):?><a style="color:#bd202e;" href="/home/comment/<?=$account["account_id"];?>">新回应</a> <? endif;?><? if($mynotices>0):?><a style="color:#bd202e;" href="/home/notice/<?=$account["account_id"];?>">新通知</a><? endif;?></dd>
			</dl>
		<? else:?>
		<form name="loginform" id="loginform" method="post" action="<?=gurl('accounts/login');?>">
			<ul class="lgi">
				<li><span>Email：</span><input name="loginemail" id="loginemail" type="text" class="lgiTxt hilightbox" /></li>
				<li><span>密码：</span><input type="password" name="loginpassword" id="loginpassword" class="lgiTxt hilightbox" /></li>
			</ul>
			<p class="point" id="ts">&nbsp;</p>
			<p class="lgiKey"><span class="fgt"><a href="<?=gurl('accounts/forget');?>" class="cCBlue">忘记密码</a></span><span><input name="remember" id="remember" type="checkbox" value="1" checked />记住我</span><span><input name="logindosubmit" id="logindosubmit" type="button" onclick="check_sitelogin_form();" value="登录" class="blueKey" /></span><span><input type="button" value="注册" class="blueKey" onclick="window.location.href='<?=gurl('accounts/');?>'" /></span></p>
		</form>
		<? endif;?>
		</div>
		<span class="bl"></span><span class="br"></span>
	</div>
	<div class="hackbox"></div>
</div>
<div class="blank8"></div>
<div class="w940">
	<ul class="retitle">
		<li class="sel"><a href="javascript:void(0);" onclick="$(this).parent('li').addClass('sel').siblings().removeClass('sel');$('#girlarea').show();$('#boyarea').hide();">主题日</a></li>
		<li><a href="javascript:void(0);" onclick="$(this).parent('li').addClass('sel').siblings().removeClass('sel');$('#boyarea').show();$('#girlarea').hide();">凑热闹</a></li>
	</ul>
	<div class="w880">
		<div id="girlarea">
			<ul class="listKK">
			 <? foreach ($sitegirl as $site):?>
				<li>
					<span class="listImg"><img class="blank" src="<?=gurl('images');?>/tran.gif"><a href="<?=c('site_url');?><?=$site['domain'];?>"><img src="<?=gurl('data');?>/upload_pic/<?=$site['info']['logo'];?>" onerror="this.src='<?=gurl('images');?>/testlogo1.gif';" alt="<?=$site['name'];?>" width="60" height="60"></a></span>
					<span class="listTxt"><a href="<?=c('site_url');?><?=$site['domain'];?>" class="title"><?=$site['name'];?></a> <em class="intr"><?=$site['info']['description'];?></em> <em class="cCGray"><?=$site['funs'];?>人关注</em></span>	
				</li>
			<? endforeach;?>
			</ul>
			<div class="blank22"></div>
			<ul class="position">
			<? foreach ($posgirl as $pos):?>
				<li style="<? if($pos['background'] != ""):?>background:url('<?=gurl('data/upload_pic/'.$pos['background']);?>') no-repeat;<? elseif ($pos['backcolor'] != ""):?>background:<?=$pos['backcolor'];?>;<? endif;?>">
					<div><?=$pos['description'];?></div>
				</li>
			<? endforeach;?>
			</ul>
		</div>
		<div id="boyarea" style="display:none;">
			<ul class="listKK">
			 <? foreach ($siteboy as $site):?>
				<li>
					<span class="listImg"><img class="blank" src="<?=gurl('images');?>/tran.gif"><a href="<?=c('site_url');?><?=$site['domain'];?>"><img src="<?=gurl('data');?>/upload_pic/<?=$site['info']['logo'];?>" onerror="this.src='<?=gurl('images');?>/testlogo1.gif';" alt="<?=$site['name'];?>" width="60" height="60"></a></span>
					<span class="listTxt"><a href="<?=c('site_url');?><?=$site['domain'];?>" class="title"><?=$site['name'];?></a> <em class="intr"><?=$site['info']['description'];?></em> <em class="cCGray"><script language="javascript" src="<?=gurl('site_statis/funs/'.$site["id"]);?>"></script>人关注</em></span>	
				</li>
			<? endforeach;?>
			</ul>
			<div class="blank22"></div>
			<ul class="position">
			<? foreach ($posboy as $pos):?>
				<li style="<? if($pos['background'] != ""):?>background:url('<?=gurl('data/upload_pic/'.$pos['background']);?>') no-repeat;<? elseif ($pos['backcolor'] != ""):?>background:<?=$pos['backcolor'];?>;<? endif;?>">
					<div><?=$pos['description'];?></div>
				</li>
			<? endforeach;?>
			</ul>
		</div>
	</div>
	<div class="hackbox"></div>
</div>
<script language="javascript">
	$(document).ready(function(){		
		aj_get_banner(39, "indexbanner");
	})
</script>